package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.VolunteerCollegeMapper;
import com.ruoyi.baoming.domain.VolunteerCollege;
import com.ruoyi.baoming.service.IVolunteerCollegeService;

/**
 * 志愿院校信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class VolunteerCollegeServiceImpl implements IVolunteerCollegeService 
{
    @Autowired
    private VolunteerCollegeMapper volunteerCollegeMapper;

    /**
     * 查询志愿院校信息
     * 
     * @param id 志愿院校信息主键
     * @return 志愿院校信息
     */
    @Override
    public VolunteerCollege selectVolunteerCollegeById(Long id)
    {
        return volunteerCollegeMapper.selectVolunteerCollegeById(id);
    }

    /**
     * 查询志愿院校信息列表
     * 
     * @param volunteerCollege 志愿院校信息
     * @return 志愿院校信息
     */
    @Override
    public List<VolunteerCollege> selectVolunteerCollegeList(VolunteerCollege volunteerCollege)
    {
        return volunteerCollegeMapper.selectVolunteerCollegeList(volunteerCollege);
    }

    /**
     * 新增志愿院校信息
     * 
     * @param volunteerCollege 志愿院校信息
     * @return 结果
     */
    @Override
    public int insertVolunteerCollege(VolunteerCollege volunteerCollege)
    {
        return volunteerCollegeMapper.insertVolunteerCollege(volunteerCollege);
    }

    /**
     * 修改志愿院校信息
     * 
     * @param volunteerCollege 志愿院校信息
     * @return 结果
     */
    @Override
    public int updateVolunteerCollege(VolunteerCollege volunteerCollege)
    {
        return volunteerCollegeMapper.updateVolunteerCollege(volunteerCollege);
    }

    /**
     * 批量删除志愿院校信息
     * 
     * @param ids 需要删除的志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteVolunteerCollegeByIds(Long[] ids)
    {
        return volunteerCollegeMapper.deleteVolunteerCollegeByIds(ids);
    }

    /**
     * 删除志愿院校信息信息
     * 
     * @param id 志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteVolunteerCollegeById(Long id)
    {
        return volunteerCollegeMapper.deleteVolunteerCollegeById(id);
    }
}
